package edu.huangke.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/method")
public class MethodController {

    @RequestMapping(method = RequestMethod.GET)
    public String get() {
        return "hello";
    }

    @RequestMapping(method = RequestMethod.POST)
    public String post() {
        return "hello";
    }
}
